/**
 * 进出记录
 */

import { Dayjs } from "dayjs";
import { IFile } from "../commit";

export interface FieldType {
    plateNumber: any;
    driverName: any
}
// 入矿记录 - 入参
export interface IBaseEntryVoucherEntryRecordParams {
    currentPage: number//当前页
    pageSize: number //每页条数
    param?: string//关键字
}
// 入矿记录 - 出参
export interface IBaseEntryVoucherEntryRecord {
    actualEntryTime: string//实际入矿时间
    driverPhone: string//司机联系电话
    entryNum: string//入矿编号
    entryPhoto: IFile//入矿照片
    id: string//id
    licensePlate: string//车牌号码
    plateColor: string// 车牌颜色
}
// 出矿记录 - 出参
export interface IBaseEntryVoucherExitRecord {
    actualExitTime: string//实际入矿时间
    driverPhone: string//司机联系电话
    exitNum: string//入矿编号
    exitPhoto: IFile//入矿照片
    id: string//id
    licensePlate: string//车牌号码
    plateColor: string// 车牌颜色
}
// 入矿凭证 - form
export interface IBaseEntryVoucherPageForm {
    driverPhone: string //司机联系电话
    licensePlate: string//车牌号码
    plateColor: string//车牌颜色
}
// 入矿凭证 - 入参
export interface IBaseEntryVoucherPageParams {
    currentPage: number//当前页
    driverPhone?: string//司机联系电话
    licensePlate?: string //车牌号码
    pageSize: number//每页条数
    plateColor?: string //车牌颜色
}
// 入矿凭证 - 出参
export interface IBaseEntryVoucherPage {
    actualEntryTime: string//实际入矿时间
    actualExitTime: string//实际出矿时间
    driverPhone: string//司机联系电话
    entryDate: string//入矿日期
    entryPhoto: IFile//入矿照片
    exitPhoto: IFile//出矿照片
    id: string//id
    isEntry: number//是否入矿0是未入矿 1已入矿
    isExit: number//是否出矿0是未出矿 1已出矿
    licensePlate: string //车牌号码
    permitNumber: string//凭证编号
    plateColor: string//
    source: number//1:手动录入 2:自动登记
}
//  入矿凭证 - 手动登记 - 入参
export interface IBaseEntryVoucherAddParams extends IBaseEntryVoucherPageForm {
    entryDate: string//允许车辆进入矿区的日期 
}
// 入矿凭证 - 手动登记 - form
export interface IBaseEntryVoucherAddForm extends IBaseEntryVoucherPageForm {
    entryDate: Dayjs | null
}

// 脱机录入 - 入矿 - 入参
export interface IBaseEntryVoucherEntryParams {
    actualEntryTime: string//实际入矿时间
    driverPhone: string//司机联系电话
    isEntry: number//是否入矿0是未入矿 1已入矿
    licensePlate: string //车牌号码
    plateColor: string//
}
// 脱机录入 - 入矿 - form
export interface IBaseEntryVoucherEntryForm {
    actualEntryTime: Dayjs//实际入矿时间
    driverPhone: string//司机联系电话
    isEntry: number//是否入矿0是未入矿 1已入矿
    licensePlate: string //车牌号码
    plateColor: string//
}
//   脱机录入 - 出矿 - 入参
export interface IBaseEntryVoucherExitParams {
    driverPhone: string//司机联系电话
    actualExitTime: string//实际出矿时间
    licensePlate: string//车牌号码
    isExit: number//是否已出矿0是未出矿 1已出矿
    plateColor: string//车牌颜色
}
export interface IBaseEntryVoucherExitForm {
    driverPhone: string//司机联系电话
    actualExitTime: Dayjs//实际出矿时间
    licensePlate: string//车牌号码
    isExit: number//是否已出矿0是未出矿 1已出矿
    plateColor: string//车牌颜色
}
